package com.tich.program.service;

import com.tich.api.domain.dto.ProgramTicketAddDTO;
import com.tich.api.domain.dto.ProgramTicketDeductDTO;
import com.tich.api.domain.vo.ProgramClientSelectVO;

public interface ClientService {

    /**
     * 根据id查询节目以及门票信息
     * @param programId
     * @param ticketId
     * @return
     * */
    ProgramClientSelectVO programClientSelect(Long programId, Long ticketId);

    /**
     * 扣减门票数量
     * @param programTicketDeductDTO
     * @return
     * */
    Boolean programTicketDeduct(ProgramTicketDeductDTO programTicketDeductDTO);

    /**
     * 取消订单，恢复门票库存
     * @param programTicketAddDTO
     * @return
     * */
    Boolean programTicketAdd(ProgramTicketAddDTO programTicketAddDTO);


    String ticketCategorySelect(Long ticketId);
}
